// 将UTC时间转换成北京时间
function utc2beijing(utc_datetime) {
	// 处理成为时间戳
	timestamp = new Date(Date.parse(utc_datetime));
	timestamp = timestamp.getTime();
	timestamp = timestamp/1000;

	// 增加8个小时，北京时间比utc时间多八个时区
	var timestamp = timestamp+8*60*60;

	// 时间戳转为时间
	var beijing_datetime = new Date(parseInt(timestamp) * 1000).toLocaleString();
	return beijing_datetime; // 2017-03-31 16:02:06
}


function getParamsFromUrl() {
	const paramsObj = {};
	let params = location.search.split('?');
	for (let i = 0, len = params.length; i < len; i++) {
		if (!params[i]) {
			continue
		}
		const temp = params[i].split('=');
		paramsObj[temp[0]] = temp[1]
	}
	return paramsObj
}
